import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const rule: AppRouteModule = {
  path: '/rule',
  name: 'Rule',
  component: LAYOUT,
  redirect: '/rule/manager',
  meta: {
    orderNo: 2,
    icon: 'ant-design:audit-outlined',
    title: t('routes.busi.rule.moduleName'),
  },
  children: [
    {
      path: 'manager',
      name: 'RuleManager',
      meta: {
        title: t('routes.busi.rule.manager'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/busi/rule/index.vue'),
    },
  ],
};

export default rule;
